package game.gui.panelconversation;

import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;

/**
 *
 * @author Gab'z
 */
public class PanelConvInfo extends JPanel {

    private static PanelConvInfo panelConvInfo = null;

    private PanelConvInfo() {
        this.setBackground(Color.white);
    }

    public static PanelConvInfo getPanelConvInfo() {
        if (panelConvInfo == null) {
            panelConvInfo = new PanelConvInfo();
        }
        return panelConvInfo;
    }

    public void setInfo(String info) {
        //this.add(new JLabel(info));
        this.add(new JTextArea(info));
        //JTextArea jTextArea = new JTextArea(info);
    }
}
